package com.test.mybatis.dao;

import com.test.mybatis.entities.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2018/11/8 10:35
 */
public interface EmployeeMapperDynamicSQL {
    public List<Employee> getEmpsByConditionIf(Employee employee);

    public List<Employee> getEmpsByConditionTrim(Employee employee);

    public List<Employee> getEmpsByConditionChoose(Employee employee);

    public void updateEmp(Employee employee);

    public List<Employee> getEmpsByConditionForeach(@Param("ids") List<Integer> ids);

    public void addEmps(@Param("emps") List<Employee> emps);

    public List<Employee> getEmpsTestInnerParameter(Employee employee);
}
